package chp09;

public class Test2 {

    public static void a(){
        System.out.println("a方法");
        for (int i = 1; i <= 5; i++) {
            System.out.print(i+"\t");
        }
        System.out.println();
    }

    public static void b(){
        System.out.println("b方法");

    }

    public static void c(){
        System.out.println("c方法");
        int num = 5;
        for (int i = 1; i <= num; i++){
            for (int j = num - i; j > 0 ; j--) {
                System.out.print(" ");
            }
            for(int j = 1; j <= 2*i-1;j++){
                System.out.print("*");
            }
            System.out.println();
        }
    }

    public static void main(String[] args) {
        //方法调用
        for (int i = 0; i < 3; i++) {
            a();
        }
        for (int i = 0; i < 2; i++) {
            b();
        }
        for (int i = 0; i < 3; i++) {
            c();
        }

    }
}